package com.lemner.ke.util;

/**
 * 富文本处理
 */
public class EscapeUtil {
    public static String htmlEscape(String content) {
        content = content.replace("&quot;", "\"");
        content = content.replace("&apos;", "'");
        content = content.replace("&lt;", "<");
        content = content.replace("&gt;", ">");
        content = content.replace("&amp;", "&");
        content = content.replace("&ldquo;", "“");
        content = content.replace("&rdquo;", "”");
        content = content.replace("&mdash;", "—");
        return content;
    }
}
